/*
 * Copyright (c) 2019 DawnFramework. All Rights Reserved.
 * Licensed under the MIT (LICENSE) license.
 */
package org.dawn.common.core.sequence;

import org.dawn.common.core.utils.Strings;

import java.util.UUID;

/**
 * UUID 序列
 * @author Willard.Hu on 2017/10/30.
 */
public class UUIDSequence implements Sequence<String> {

    @Override
    public String nextId() {
        return Strings.replace(UUID.randomUUID().toString(), "-", Strings.EMPTY);
    }
}
